//
//  EasyGlyph.h
//
//  Created by Alexei White on 14/05/09.
//  Copyright 2009 Alexei White. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "EasyGlyphChar.h"

extern int const EG_ORIENTATION_LEFT;
extern int const EG_ORIENTATION_RIGHT;
extern int const EG_ORIENTATION_TOP;
extern int const EG_ORIENTATION_BOTTOM;
extern int const EG_ORIENTATION_CENTERED;

@interface EasyGlyph : NSObject {
	UIImage *fontUIImage;
	NSMutableDictionary *characterDict;
	float kerning;
	int charSetLength;
	NSString *charSet;
}

-(void)initFont:(NSString *)fontImage:(NSString *)charSt:(NSString *)fontInfo;
-(UIImage *)writeTextToTexture:(NSString *)lettering;
+(UIImage *)imageByCropping:(UIImage *)imageToCrop toRect:(CGRect)rect;
+(CGRect)getRectFromTargetWidth:(CGFloat)texWidth:(CGFloat)texHeight:(CGFloat)targetWidth:(CGPoint)centerPos:(int)hOrientation:(int)vOrientation;
+(CGRect)getRectFromTargetHeight:(CGFloat)texWidth:(CGFloat)texHeight:(CGFloat)targetHeight:(CGPoint)centerPos:(int)hOrientation:(int)vOrientation;

@end
